#ifndef _XASSERT_H
#define _XASSERT_H

#if defined(XASSERT_DEBUG)
#   define XASSERT(expr) ((expr)?(void)0:__xassert(#expr, __FILE__, __LINE__, __func__))
#else
#   define XASSERT(expr) ((void)0)
#endif

void __xassert(char *expr, const char *file, int line, const char *func);

#endif

